public class BreakOutsideNested {
    public static void main(String[] args) {
       Loop: for(int i=0;i<5;i++)//Loop标记外层循环
        {
            for(int j=0;j<5;j++)
            {
                System.out.println("i="+i+"j="+j);
                if(j==2)
                {
                    break Loop;//break跳出Loop标记的外层循环
                }
            }
        }
    }
}
